//
//  NormalNavBar.m
//  GuiJuWo
//
//  Created by chenguibang on 16/3/26.
//  Copyright © 2016年 chenguibang. All rights reserved.
//

#import "NormalNavBar.h"

@implementation NormalNavBar

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)init
{
    self = [super init];
    if (self) {
      
        
        self.titleLable = [[UILabel alloc]init];
        self.titleLable.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.titleLable];
        
        self.titleLable.sd_layout.topEqualToView(self).leftEqualToView(self).rightEqualToView(self).bottomEqualToView(self);
        
       
    }
    return self;
}

-(UIButton *)backBtn{
    if (!_backBtn) {
        _backBtn = [[UIButton alloc]init];
        [self addSubview:_backBtn];
        _backBtn.sd_layout.topSpaceToView(self,5).leftSpaceToView(self,10).bottomSpaceToView(self,5).widthEqualToHeight();
        [_backBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
    }
    return _backBtn;
}

@end
